package com.lin.fengxiu.vo;

import com.lin.fengxiu.model.Category;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.BeanUtils;

/**
 * @ClassName CategoryPureVO
 * @Description TODO  分类VO
 * @Author wushaopei
 * @Date 2021/3/17 6:55
 * @Version 1.0
 */
@Setter
@Getter
public class CategoryPureVO {

    private Long id;

    private String name;

    private Boolean isRoot;

    private String img;

    private Long parentId;

    private Long index;

    public CategoryPureVO(Category category){
        BeanUtils.copyProperties(category, this);
    }
}
